package com.bigshen.mvc.demo.service.impl;

import com.bigshen.mvc.demo.service.IDemoService;
import com.bigshen.mvc.spring.annonation.ShenService;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Author eddy.shen
 * @Date 2020/4/5 15:37
 **/
@ShenService
public class IDemoServiceImpl implements IDemoService {

    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    @Override
    public Integer add(Integer a, Integer b) {
        return a + b;
    }

    @Override
    public String getName(String name) {
        return String.format("Get name[%s] at %s", name, sdf.format(new Date()));
    }


}
